package com.ruoyi.process.ccs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.process.ccs.mapper.CcsJdkpsMapper;
import com.ruoyi.process.ccs.domain.CcsJdkps;
import com.ruoyi.process.ccs.service.ICcsJdkpsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 机电科排水Service业务层处理
 *
 * @author Xianlu Tech
 * @date 2020-04-02
 */
@Service
public class CcsJdkpsServiceImpl implements ICcsJdkpsService {
    @Autowired
    private CcsJdkpsMapper ccsJdkpsMapper;

    /**
     * 查询机电科排水
     *
     * @param id 机电科排水ID
     * @return 机电科排水
     */
    @Override
    public CcsJdkps selectCcsJdkpsById(String id) {
        return ccsJdkpsMapper.selectCcsJdkpsById(id);
    }

    /**
     * 查询机电科排水列表
     *
     * @param ccsJdkps 机电科排水
     * @return 机电科排水
     */
    @Override
    public List<CcsJdkps> selectCcsJdkpsList(CcsJdkps ccsJdkps) {
        return ccsJdkpsMapper.selectCcsJdkpsList(ccsJdkps);
    }

    /**
     * 新增机电科排水
     *
     * @param ccsJdkps 机电科排水
     * @return 结果
     */
    @Override
    public int insertCcsJdkps(CcsJdkps ccsJdkps) {
        return ccsJdkpsMapper.insertCcsJdkps(ccsJdkps);
    }

    /**
     * 修改机电科排水
     *
     * @param ccsJdkps 机电科排水
     * @return 结果
     */
    @Override
    public int updateCcsJdkps(CcsJdkps ccsJdkps) {
        return ccsJdkpsMapper.updateCcsJdkps(ccsJdkps);
    }

    /**
     * 删除机电科排水对象
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteCcsJdkpsByIds(String ids) {
        return ccsJdkpsMapper.deleteCcsJdkpsByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除机电科排水信息
     *
     * @param id 机电科排水ID
     * @return 结果
     */
    @Override
    public int deleteCcsJdkpsById(String id) {
        return ccsJdkpsMapper.deleteCcsJdkpsById(id);
    }
}
